package com.xmg.p2p.business.service;

import com.xmg.p2p.base.domain.Account;
import com.xmg.p2p.business.domain.BidRequest;
import com.xmg.p2p.business.domain.MoneyWithdraw;
import com.xmg.p2p.business.domain.SystemAccount;

import java.math.BigDecimal;

/**
 * lcd  2020/5/29
 * Description:
 */
public interface ISystemAccountService {
    void update(SystemAccount systemAccount);

    /**
     * 检查并初始化系统账户
     */
    void initAccount();

    /**
     * 系统账户收到借款管理费
     *
     * @param br
     * @param manageChargeFee
     */
    void chargeBorrowFee(BidRequest br, BigDecimal manageChargeFee);

    void withdrawFee(MoneyWithdraw moneyWithdraw, Account account);
}
